package cConsole

import (
	"gitee.com/csingo/cComponents"
)

type ConsoleComponent struct{}

func (i *ConsoleComponent) Inject(instance any) bool {
	if container.Is(instance) {
		return container.Save(instance)
	}
	return false
}

func (i *ConsoleComponent) InjectConf(config cComponents.ConfigInterface) bool {
	return true
}

func (i *ConsoleComponent) Load() {
	load()
}

func (i *ConsoleComponent) Listen() []*cComponents.ConfigListener {
	return make([]*cComponents.ConfigListener, 0)
}

var Component = &ConsoleComponent{}
